package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.domain.OrderReturnReason;

import java.util.List;

/**
 * <p>
 * 退货原因表 服务类
 * </p>
 *
 * @author fukeke
 * @since 2022-11-11
 */
public interface IOrderReturnReasonService extends IService<OrderReturnReason> {
    //分页查询退货原因
    Page selectByPage(Integer pageNum, Integer pageSize);

    //根据id，获取单个退货原因详情信息
    OrderReturnReason findById(Long id);

    //修改退货原因
    Integer updateReturnReason(OrderReturnReason reason);

    ////批量删除退货原因
    Integer deleteByIds(List<Long> ids);

    //添加退货原因
    Integer saveReson(OrderReturnReason reason);
}
